from singletonDecorator import singletonDecorator

@singletonDecorator
class MyBeautifulGirl(object):
    """我的漂亮女神"""

    def __init__(self, name):
        self.__name = name
        if self.__name == name:
            print("遇见" + name + "，我一见钟情!")
        else:
            print("遇见" + name + "，我置若罔闻!")

    def showMyHeart(self):
        print(self.__name + "就是我心中的唯一")


def TestLove():
    jenny = MyBeautifulGirl("Jenny")
    jenny.showMyHeart()
    kimi = MyBeautifulGirl("Kimi")
    kimi.showMyHeart()
    print("id(jenny):", id(jenny), "id(kimi):", id(kimi))


TestLove()
